var radioItem = function (onChangeEvent) {
    this.onChangeEvent = onChangeEvent;
    var html = '';
    html += '<div class="form_radio_Item">';
    html += '   <label class="form_radio_choose"><i class="fa fa-circle-o"></i></label>';
    // html += '   <div class="form_radio_name">' + this.name + '</div>';
    html += '</div>';
    this.html = $(html);
    this._element = this.html.find('.form_radio_choose');
    this.value = false;
    var _this = this;
    this.html.unbind().bind('click', function () {
        if (!_this.value) {
            _this.onChangeEvent(_this);
        };
    });
};

radioItem.prototype.select = function () {
    this.value = true;
    this._element.addClass('active');
    this._element.find('i').removeClass('fa-circle-o').addClass('fa-dot-circle-o');
};

radioItem.prototype.unSelect = function () {
    this.value = false;
    this._element.removeClass('active');
    this._element.find('i').removeClass('fa-dot-circle-o').addClass('fa-circle-o');
};

export default radioItem
